package com.elcom.roaming.module.synthesis.pr;

import com.elcom.roaming.common.util.match.ObjectValue;

public class PRValue extends ObjectValue {

	public static final char P0 = '0';
	public static final char P1 = '1';
	
	String imsi;
	String msisdn;
	String msrn;
	
	public PRValue(String imsi, String msisdn) {
		this.type = P0;
		this.imsi = imsi;
		this.msisdn = msisdn;
	}
	
	public PRValue(String msrn) {
		this.type = P1;
		this.msrn = msrn;
	}
	
	@Override
	public String toString() {
		if (type == P0)
			return "type=P" + type +
					"|imsi=" + imsi +
					"|msisdn=" + msisdn;
		else 
			return "type=P" + type + "|msrn=" + msrn;
	}

}
